﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="HMS.PL.Forms.Home" %>

<%@ Register Src="~/UserControls/Dashboard/Main.ascx" TagName="DashboardControl"
    TagPrefix="uc" %>
<%@ Register Src="~/UserControls/Reporting/Main.ascx" TagName="ReportingControl"
    TagPrefix="uc" %>
<%@ Register Src="~/UserControls/Configuration/Main.ascx" TagName="ConfigurationControl"
    TagPrefix="uc" %>
<%@ Register Src="~/UserControls/Grouping/Main.ascx" TagName="GroupingControl" 
    TagPrefix="uc" %>
<%@ Register Src="~/UserControls/Dimensions/Main.ascx" TagName="DimensionsControl"
    TagPrefix="uc" %>
<%@ Register Src="~/UserControls/ConfigHierarchy/Main.ascx" TagName="ConfigControlHierarchy"
    TagPrefix="uc" %>

<% Response.AddHeader("Pragma", "no-cache"); %>
<% Response.AddHeader("Cache-Control", "no-cache"); %>
<% Response.AddHeader("Cache-Control", "no-store"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Home</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../Scripts/jquery-1.6.1.js"></script>
    <script type="text/javascript" src="../Scripts/ui/jquery.ui.datepicker.js"></script>
    <%--for tab--%>
    <%-- <script type="text/javascript" src="../Scripts/ui/jquery-ui-1.8.16.custom.js"></script>--%>
    <%--    <link type="text/css" rel="stylesheet" href="../themes/ui-lightness/jquery-ui-1.8.16.custom.css" />--%>
    <%--   <link type="text/css" href="../themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />--%>
    <script type="text/javascript" src="../Scripts/ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="../Scripts/ui/jquery.ui.tabs.js"></script>
    <%-- <link type="text/css" href="../css/demos.css" rel="stylesheet" />--%>
    <%--end for tab--%>
    <script type="text/javascript" src="../Scripts/ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="../Scripts/ui/ui.tabs.closable.js"></script>
    <%-- <link type="text/css" rel="stylesheet" href="../themes/base/jquery-ui.css" />--%>
    <script type="text/javascript" src="../Scripts/jquery.cookie.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.hotkeys.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.jstree.js"></script>
    <script type="text/javascript" src="../Scripts/common.js"></script>
    <%-- <script type="text/javascript" src="../Scripts/jquery.alerts.js"></script>
    <link rel="stylesheet" type="text/css" href="../Style/jquery.alerts.css">--%>
    <script type="text/javascript" src="../Scripts/Tree.js"></script>
    <script type="text/javascript" src="../Scripts/formsScript/welcome.js"></script>
    <link rel="stylesheet" type="text/css" href="../Style/common.css">
    <link type="text/css" rel="stylesheet" href="../Style/!style1.css" />
    <link type="text/css" rel="stylesheet" href="../Style/!style2.css" />
    <link type="text/css" rel="stylesheet" href="../themes/default/style.css" />
    <link rel="stylesheet" type="text/css" href="../Style/superfish.css" media="screen">
    <script type="text/javascript" src="../Scripts/!script.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.tmpl.js"></script>
    <script type="text/javascript" src="../Scripts/hoverIntent.js"></script>
    <script type="text/javascript" src="../Scripts/superfish.js"></script>
    <script type="text/javascript" src="../Scripts/formsScript/master.js"></script>
    <script type="text/javascript" src="../Scripts/formsScript/config.js"></script>
    <script type="text/javascript" src="../Scripts/formsScript/reports.js"></script>
    <script type="text/javascript" src="../Scripts/formsScript/dashboard.js"></script>
     <script type="text/javascript" src="../Scripts/formsScript/configHier.js"></script>
    <%--jqgrid files--%>
    <link type="text/css" rel="stylesheet" href="../css/ui.jqgrid.css" />
    <link type="text/css" rel="stylesheet" href="../css/ui.multiselect.css" />
    <link type="text/css" rel="stylesheet" href="../themes/redmond/jquery-ui-1.8.1.custom.css" />
    <link type="text/css" href="../css/demos.css" rel="stylesheet" />
    <script src="../Scripts/jquery.layout-latest.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.locale-en.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/jqModal.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.base.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.common.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.formedit.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.inlinedit.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.jqueryui.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/jquery.contextmenu.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/jquery.tablednd.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.filter.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.custom.js" type="text/javascript"></script>
    <%--   <script src="../Scripts/jqgrid/grid.formedit.js" type="text/javascript"></script>
    <script src="../Scripts/jqgrid/grid.inlinedit.js" type="text/javascript"></script>--%>
    <script src="../Scripts/jqgrid/jqDnR.js" type="text/javascript"></script>
    <script src="../Scripts/simpleresizabletables.js" type="text/javascript"></script>
    <%--   <script src= "../Scripts/json2.js" type="text/javascript"></script>--%>
    <script type="text/javascript" src="../Scripts/jqgrid/jquery.searchFilter.js"></script>
    <%--     jquery-ui-1.8.1.custom.css--%>
    <%--jqgrid files--%>

    <%--graph files--%>
    <script src="../Scripts/graph/jquery.jqplot.min.js" type="text/javascript" language="javascript"></script>
    <link type="text/css" href="../Scripts/graph/jquery.jqplot.css" rel="stylesheet" />
    <script src="../Scripts/graph/jqplot.pieRenderer.js" type="text/javascript" language="javascript"></script>
    <script src="../Scripts/graph/jqplot.donutRenderer.min.js" type="text/javascript"
        language="javascript"></script>
    <script type="text/javascript" src="../Scripts/graph/jqplot.barRenderer.min.js"></script>
    <script type="text/javascript" src="../Scripts/graph/jqplot.categoryAxisRenderer.min.js"></script>
    <script type="text/javascript" src="../Scripts/graph/jqplot.pointLabels.min.js"></script>
    <script type="text/javascript" src="../Scripts/graph/jqplot.canvasTextRenderer.min.js"></script>
    <script type="text/javascript" src="../Scripts/graph/jqplot.canvasAxisTickRenderer.min.js"></script>
    <script type="text/javascript" src="../Scripts/graph/excanvas.js"></script>
     <%--//graph files--%>

    <script id="tmplOptions" type="text/x-jquery-tmpl"> 
        <option value=${Value}>${Text}</option>
    </script>
    <script type="text/javascript">
        //for tab main
        $(function () {
            $(document).ajaxError(function (event, jqXHR, settings, err) {
                //debugger;
                if (jqXHR.status == 401 && jqXHR.responseText && jqXHR.responseText.indexOf("<html>") != -1) {
                    window.location.href = "/forms/login.aspx";
                }
            });

            $("#tabs").tabs();
        });

        /*
        //for tab inside hierarchy tab
        $(function () {
        $("#tabsDim").tabs();
        });
        

        //for tab inside Dimension tab
        $(function () {
        $("#tabsDimm").tabs();
        });
        */

        $(function () {
            // debugger;

            var $tabs = $("#tabs").tabs({
                select: function (e, ui) {
                    //debugger;
                    if (ui.index == 4) {
                        //debugger;
                        var dimtabName = ui.panel.id;
                        if ($("#gbox_dtXMasterList").length == 0) {
                            loadConfigDimdata();
                        }
                    }
                    else if (ui.index == 5) {
                        //debugger;
                        if ($('#ulHier').hasClass('ui-tabs-nav') == false) {
                            $("#tabsHier").tabs();
                            loadHierarchy();
                            ////debugger;
                            var hier_data = BindCombo("bind_hierarchy", "", "Cdrp_hier", "hier", true);

                        }
                    }
                }
            });
        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center" style="width: 99%; margin-right: auto; margin-left: auto; float: none;">
        <div style="height: 50px; background-color: #C5DBEC; text-align: center; border: 1px solid;
            vertical-align: middle;">
            <div>
                <span style="font-style: normal; font-size: 20px; color: #2D2D2D; text-align: center;
                    margin-left: 10px; vertical-align: middle; height: 50px;">Dynamic Dimensions – By
                    ExpertDimensions – Jump to Business Intelligence 3.0</span></div>
            <div align="right" style="vertical-align: top; padding-right: 2px; margin-top: 10px;">
                <a href='logout.aspx'><b>Logout</b></a></div>
        </div>
        <div id="tabs" style="overflow: auto;">
            <ul>
                <li><a href="#tabs-0">Dashboard</a></li>
                <li><a href="#tabs-1">Dimensions</a></li>
                <li><a href="#tabs-2">Grouping</a></li>
                <li><a href="#tabs-4">Reporting</a></li>
                <li><a href="#tabs-3">Conf Dimension</a></li>
                <li><a href="#tabs-5">Conf Hierarchy</a></li>
            </ul>
            <%--Dashboard Starts Here--%>
            <uc:DashboardControl ID="DashboardControl" runat="server" />
            <%--Dashboard Ends Here--%>
            <%--Dimensions Starts Here--%>
            <uc:DimensionsControl ID="DimensionsControl" runat="server" />
            <%--Dimensions Ends Here--%>
            <%--Grouping Starts Here--%>
            <uc:GroupingControl ID="GroupingControl" runat="server" />
            <%--Grouping Ends Here--%>
            <%--Configuration Starts Here--%>
            <uc:ConfigurationControl ID="ConfigurationControl" runat="server" />
            <%--Configuration Ends Here--%>
            <%--Reporting Starts Here--%>
            <uc:ReportingControl ID="ReportingControl" runat="server" />
            <%--Reporting Ends Here--%>
            <%--Hierarchy of Configuration Starts Here--%>
            <uc:ConfigControlHierarchy ID="ConfigControlHierarchy" runat="server" />
            <%--Hierarchy of Configuration Ends Here--%>
        </div>
    </div>
    </form>
      <div style="border: 1px solid #BDBDBD; padding: 10px; display: none; position: absolute;
        background-color: rgb(238, 238, 238); font-weight: bold;" id="del-menu" class=".ui-widget ">
        <a href="#" id="aDetail" style="list-style-type: none; text-decoration: none; margin-top: 10px;"
            class="context-menu-item">Detail</a><br />
        <div class="context-menu-separator">
            &nbsp;
        </div>
        <a href="#" id="aRemove" style="list-style-type: none; margin-top: 10px; text-decoration: none;"
            class="context-menu-item">Remove</a><br />
    </div>
</body>
</html>
